<template>
  <div id="app">
    <router-view/>
    <div style="text-align: center">        <!--图标在文字后面显示-->
      <el-button @click="toLogin"  type="primary">点击登录 <i class="el-icon-magic-stick"></i></el-button >
    </div>
  </div>
</template>

<script>

export default {
  name: 'App',
  components: {
  },
  methods:{
    toLogin(){
      this.$router.push({path:'/login'});
    }
  }
}
</script>

<style>
#app {
  height: 100%;
}


</style>
